package StringTest;

public class StringLoad {

    public static void main(String[] args) {
        String s="mango";
        String s1="abc"+s+"def"+47;
        System.out.println(s1);
    }

    public String implicit(String [] fields){
        String result="";
        for (String field : fields) {
            result+=field;
        }
        return result;
    }

    public String explicit(String [] fields){
        StringBuilder stringBuilder=new StringBuilder();
        for (String field : fields) {
            stringBuilder.append(field);
        }
        return stringBuilder.toString();
    }
}
